package com.resou.reader.bookstore.rank.fragment;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.resou.reader.api.entry.RankTypeBean;
import com.resou.reader.api.entry.TypeResultBean;
import com.resou.reader.base.BasePresenter;
import com.resou.reader.base.BaseView;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;

import java.util.List;

/**
 * Author: 萤火虫
 * E-mail:  Allensuns@163.com
 * Description:
 * CreateTime: 2019-04 -09
 **/
public interface IRankFragmentContract {
    interface IRankFragmentView extends BaseView {
        /**
         * 显示状态
         *
         * @param gender
         */
        void setPageState(int gender);

        /**
         * 显示排行榜类型数据
         *
         * @param list
         */
        void showTypeLabel(List<RankTypeBean> list);

        /**
         * 显示排行榜列表数据
         *
         * @param list
         */
        void showContent(List<TypeResultBean.BookListBean> list);

        SmartRefreshLayout getSmartRefreshLayout();

        BaseQuickAdapter getAdapter();
    }

    interface IRankFragmentPresenter extends BasePresenter {
        /**
         * 查询 排行类型标签
         */
        void quearTypeLabel(String rankChannel);

        /**
         * 通过类型查询排行榜列表
         */
        void quearContent(String typeId, int page);
    }
}
